package com.st.po;

import com.st.pojo.ShopCarDetail;
import com.st.pojo.Shops;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Tag(name="goodsInsert",description = "加入商品购物车")
public class GoodsInsertPo {

    @Schema(description = "购物车")
    @NotNull(message = "购物车不能传入空")
    @Size(min = 1,message = "购物车传入数据不能为0")
    @Min(value = 1,message = "错误数据")
    private Shops shops;

    @Schema(description = "购物车详情订单")
    @NotNull(message = "订单不能传入空")
    @Size(min = 1,message = "购物车传入数据不能为0")
    @Min(value = 1,message = "错误数据")
    private List<ShopCarDetail>  shopScarDetail;
}
